<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/webstyle.css">
		<script type="text/javascript" src="js/jquery-2.1.0.js" ></script>
		<script>
		var index = 	window.location.href.split('/').length-1
		var href = window.location.href.split('/')[index].substr(0,4)
		console.log(href)
		$(function(){
			if(href>0){
					$(".list li a[href^='"+href+"']").addClass('on')
			}else{
					$(".list li a[href^='index']").addClass('on')
			}
		
		})
		</script>
	</head>
	<body>
		<div class="nav">
			<ul class="list">
				<li><a href="index.html">首页</a></li>
				<li><a href="">职业课程</a></li>
				<li><a href="">就业学习</a></li>
				<li><a href="">级客社区</a></li>
				<li><a href="">联系</a></li>
			</ul>
		</div>	
	</body>
</html>
